﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    /// <summary>
    /// 供应商管理仓储
    /// </summary>
    public interface IVendorModelRepository
    {
        /// <summary>
        /// 供应商显示列表
        /// </summary>
        /// <param name="venDorCode">供应商编号</param>
        /// <param name="vendorName">供应商名称</param>
        /// <param name="responsibleName">负责人电话</param>
        /// <param name="markets">所属市场</param>
        /// <param name="salesman">服务人员</param>
        /// <param name="useState">使用状态</param>
        /// <returns></returns>
         Task<List<Vendormodel>> GetVendormodels();
		/// <summary>
		/// 供应商删除
		/// </summary>
		/// <param name="loginUserId">删除人</param>
		/// <param name="idList">删除id</param>
		/// <returns></returns>
		Task<int> DeleteVendormodels(int loginUserId, params int[] idList);
        /// <summary>
        /// 供应商添加
        /// </summary>
        /// <param name="entity">实体</param>
        /// <returns></returns>
        Task<int> AddVendormodels(Vendormodel entity);
		/// <summary>
		/// 供应商详情
		/// </summary>
		/// <param name="vendorSnowId"></param>
		/// <returns></returns>
		Task<Vendormodel> DetailVendormodel(int vendorSnowId);
        /// <summary>
        /// 供应商修改
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> UpdateVendormodels(Vendormodel entity);



	}
}
